\hypertarget{classai_1_1util_1_1_player_action}{
\section{ai.util.PlayerAction Class Reference}
\label{classai_1_1util_1_1_player_action}\index{ai::util::PlayerAction@{ai::util::PlayerAction}}
}


Abstraction of \char`\"{}player actions\char`\"{} for some AIs.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classai_1_1util_1_1_player_action_a3db4a44b02002c8d53694fabcecfc067}{PlayerAction} (int w, int h)
\item 
\hyperlink{classai_1_1util_1_1_player_action_a01610df4b416e68e1450eddb662c68aa}{PlayerAction} (\hyperlink{classai_1_1util_1_1_player_action}{PlayerAction} a)
\item 
void \hyperlink{classai_1_1util_1_1_player_action_a3abe3290da866a426b65c32f86ed9e13}{mergeResourceUsage} (\hyperlink{classrts_1_1units_1_1_unit}{Unit} u, \hyperlink{classrts_1_1units_1_1_unit_action}{UnitAction} action)
\item 
boolean \hyperlink{classai_1_1util_1_1_player_action_ac0a837a9dcff82e8eca20d4e1b90eccb}{consistentResourceUsage} (\hyperlink{classrts_1_1units_1_1_unit_action}{UnitAction} action)
\item 
void \hyperlink{classai_1_1util_1_1_player_action_a23a9938b7bdcf6e5679af1028cab95f6}{addUnitAction} (\hyperlink{classrts_1_1units_1_1_unit}{Unit} u, \hyperlink{classrts_1_1units_1_1_unit_action}{UnitAction} action)
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int\mbox{[}$\,$\mbox{]} \hyperlink{classai_1_1util_1_1_player_action_a88efa8861a83cecf3c698205e2dd602d}{resourceUsage}
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classai_1_1util_1_1_player_action_aa4ba1d4fcf1fb7b2daf43ced71798275}{width}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Abstraction of \char`\"{}player actions\char`\"{} for some AIs. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classai_1_1util_1_1_player_action_a3db4a44b02002c8d53694fabcecfc067}{
\index{ai::util::PlayerAction@{ai::util::PlayerAction}!PlayerAction@{PlayerAction}}
\index{PlayerAction@{PlayerAction}!ai::util::PlayerAction@{ai::util::PlayerAction}}
\subsubsection[{PlayerAction}]{\setlength{\rightskip}{0pt plus 5cm}ai.util.PlayerAction.PlayerAction (
\begin{DoxyParamCaption}
\item[{int}]{w, }
\item[{int}]{h}
\end{DoxyParamCaption}
)}}
\label{classai_1_1util_1_1_player_action_a3db4a44b02002c8d53694fabcecfc067}

\begin{DoxyParams}{Parameters}
{\em w} & \\
\hline
{\em h} & \\
\hline
\end{DoxyParams}
\hypertarget{classai_1_1util_1_1_player_action_a01610df4b416e68e1450eddb662c68aa}{
\index{ai::util::PlayerAction@{ai::util::PlayerAction}!PlayerAction@{PlayerAction}}
\index{PlayerAction@{PlayerAction}!ai::util::PlayerAction@{ai::util::PlayerAction}}
\subsubsection[{PlayerAction}]{\setlength{\rightskip}{0pt plus 5cm}ai.util.PlayerAction.PlayerAction (
\begin{DoxyParamCaption}
\item[{{\bf PlayerAction}}]{a}
\end{DoxyParamCaption}
)}}
\label{classai_1_1util_1_1_player_action_a01610df4b416e68e1450eddb662c68aa}

\begin{DoxyParams}{Parameters}
{\em a} & \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classai_1_1util_1_1_player_action_a23a9938b7bdcf6e5679af1028cab95f6}{
\index{ai::util::PlayerAction@{ai::util::PlayerAction}!addUnitAction@{addUnitAction}}
\index{addUnitAction@{addUnitAction}!ai::util::PlayerAction@{ai::util::PlayerAction}}
\subsubsection[{addUnitAction}]{\setlength{\rightskip}{0pt plus 5cm}void ai.util.PlayerAction.addUnitAction (
\begin{DoxyParamCaption}
\item[{{\bf Unit}}]{u, }
\item[{{\bf UnitAction}}]{action}
\end{DoxyParamCaption}
)}}
\label{classai_1_1util_1_1_player_action_a23a9938b7bdcf6e5679af1028cab95f6}

\begin{DoxyParams}{Parameters}
{\em u} & \\
\hline
{\em action} & \\
\hline
\end{DoxyParams}
\hypertarget{classai_1_1util_1_1_player_action_ac0a837a9dcff82e8eca20d4e1b90eccb}{
\index{ai::util::PlayerAction@{ai::util::PlayerAction}!consistentResourceUsage@{consistentResourceUsage}}
\index{consistentResourceUsage@{consistentResourceUsage}!ai::util::PlayerAction@{ai::util::PlayerAction}}
\subsubsection[{consistentResourceUsage}]{\setlength{\rightskip}{0pt plus 5cm}boolean ai.util.PlayerAction.consistentResourceUsage (
\begin{DoxyParamCaption}
\item[{{\bf UnitAction}}]{action}
\end{DoxyParamCaption}
)}}
\label{classai_1_1util_1_1_player_action_ac0a837a9dcff82e8eca20d4e1b90eccb}

\begin{DoxyParams}{Parameters}
{\em action} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classai_1_1util_1_1_player_action_a3abe3290da866a426b65c32f86ed9e13}{
\index{ai::util::PlayerAction@{ai::util::PlayerAction}!mergeResourceUsage@{mergeResourceUsage}}
\index{mergeResourceUsage@{mergeResourceUsage}!ai::util::PlayerAction@{ai::util::PlayerAction}}
\subsubsection[{mergeResourceUsage}]{\setlength{\rightskip}{0pt plus 5cm}void ai.util.PlayerAction.mergeResourceUsage (
\begin{DoxyParamCaption}
\item[{{\bf Unit}}]{u, }
\item[{{\bf UnitAction}}]{action}
\end{DoxyParamCaption}
)}}
\label{classai_1_1util_1_1_player_action_a3abe3290da866a426b65c32f86ed9e13}

\begin{DoxyParams}{Parameters}
{\em u} & \\
\hline
{\em action} & \\
\hline
\end{DoxyParams}


\subsection{Member Data Documentation}
\hypertarget{classai_1_1util_1_1_player_action_a88efa8861a83cecf3c698205e2dd602d}{
\index{ai::util::PlayerAction@{ai::util::PlayerAction}!resourceUsage@{resourceUsage}}
\index{resourceUsage@{resourceUsage}!ai::util::PlayerAction@{ai::util::PlayerAction}}
\subsubsection[{resourceUsage}]{\setlength{\rightskip}{0pt plus 5cm}int \mbox{[}$\,$\mbox{]} {\bf ai.util.PlayerAction.resourceUsage}}}
\label{classai_1_1util_1_1_player_action_a88efa8861a83cecf3c698205e2dd602d}
\hypertarget{classai_1_1util_1_1_player_action_aa4ba1d4fcf1fb7b2daf43ced71798275}{
\index{ai::util::PlayerAction@{ai::util::PlayerAction}!width@{width}}
\index{width@{width}!ai::util::PlayerAction@{ai::util::PlayerAction}}
\subsubsection[{width}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf ai.util.PlayerAction.width}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classai_1_1util_1_1_player_action_aa4ba1d4fcf1fb7b2daf43ced71798275}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
src/ai/util/\hyperlink{_player_action_8java}{PlayerAction.java}\end{DoxyCompactItemize}
